# encoding: utf-8
print("*******************************")
while True:
  shui=0
  a=input("请输入你的工资:")
  a=int(a)
  if a<3500:
        shui=0
  elif a<8000:
        shui=(a-3500)*0.02
  elif a<20000:
        shui=(a-8000)*0.05+(8000-3500)*0.02
  elif a>20000:
        shui=(a-20000)*0.1+(20000-8000)*0.05+(8000-3500)*0.02
  print("你应缴纳税为：%f"%shui) 
            
    